package m.fun.model;

import m.common.model.FieldMeta;
import m.common.model.LinkTableMeta;
import m.common.model.type.FieldType;
import m.store.model.OrderModel;
import m.store.model.SaleInfo;
import m.store.model.StockInfo;

public abstract class BuildOrderModel extends OrderModel {
    @LinkTableMeta(name="stock_oid",table= StockInfo.class,description="入库信息")
    private StockInfo stock;
    @LinkTableMeta(name="sale_oid",table= SaleInfo.class,description="出库信息")
    private SaleInfo sale;
    @FieldMeta(name="build_status",type= FieldType.STRING,defaultValue = "N",description="生成状态",dictOption = "N:未生成,Y:已生成")
    private String buildStatus;
    public final static String Build_No="N";
    public final static String Build_Done="Y";

    public StockInfo getStock() {
        return stock;
    }

    public void setStock(StockInfo stock) {
        this.stock = stock;
    }

    public SaleInfo getSale() {
        return sale;
    }

    public void setSale(SaleInfo sale) {
        this.sale = sale;
    }

    public String getBuildStatus() {
        return buildStatus;
    }

    public void setBuildStatus(String buildStatus) {
        this.buildStatus = buildStatus;
    }
}
